package com.kwlt.smc.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.kwlt.smc.dao.RptSendDetailDao;
import com.kwlt.smc.entity.SmsSendDetail;
/**
 * 状态报告查询
 * 
 *
 */
@Component
public class SendRptService {
	
	@Autowired
	private RptSendDetailDao rptSendDetailDao;
	
	public SmsSendDetail findRptByLocalmsgidAndPhone(String localmsgid,String phone){
		String tableName = "sms_rpt_detail_201" + localmsgid.substring(4, 7);
		SmsSendDetail detail = 
			rptSendDetailDao.getRptByLocalMsgIdaAndPhone(localmsgid, phone, tableName);
		return detail;
	}
}
